Repository navigation
ci: run CI once per PR push and scope Pages permissions to the deploy job - #404
Merged
Merged
Conversation
… job CI and the pkg.pr.new dry publish trigger on both push (any branch) and pull_request, so every push to a PR branch runs both workflows twice. Limit push to main. Move pages: write and id-token: write from the workflow level to deploy-coverage, the only job that deploys Pages. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Guillaume Lebedel <10488548+glebedel@users.noreply.github.com>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
commit: |
This was referenced Nov 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ci.yamlanddry-publish.yamltriggered onpushfor every branch as well as onpull_request, so each push to a PR branch ran both workflows twice, including the ai-peer-range matrix and conformance.pushis now limited tomain.ci.yamlalso grantedpages: writeandid-token: writeto every job; they now sit ondeploy-coverage, the only job that deploys Pages, withcontents: readat the top.Trade-off: a branch with no open PR no longer gets CI on push.
Proof: runs per head
gh run list --commit <head>on this PR against #401, which still has the old triggers:pull_request)push+pull_request)pull_request)push+pull_request)pull_request)pull_request)All jobs pass on this head (14 pass, 4 skipped
main-only jobs).deploy-coveragekeeps whatactions/deploy-pagesneeds and only runs onmain, so its permissions are exercised on the firstmainpush after merge.Gates
.claude/rules/*(nix-workflow,development-workflow.yamlnaming).release-pleasenot applied/forge:forgepull_request_target. Aikido's open critical (template injection in.github/actions/setup-nix/action.yaml) is in a file this PR does not touch/security-review/code-reviewPost-merge validation
On the first push to
mainafter merge: CI runs once,coverageanddeploy-coveragesucceed (Pages deploy with the job-level permissions). Regression signal:deploy-coveragefailing with a permissions error.Requested by guillaume@stackone.com in Slack (repo audit thread).
🤖 Generated with Claude Code